package com.honglv.pojo.dto;

import com.honglv.utils.StringListTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;

import java.util.List;

/**
 * @Auther: 生
 * @Date: 2024/04/17/16:07
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class UpdateAcctractionDTO {

    private Long id;

    //景区名
    private String name;

    //摘要
    private String summary;

    //简介中注明开放时间 是否需要购票等等
    //内容
    private String context;

    //照片
    @ApiModelProperty(value = "List of strings", example = "[\"value1\", \"value2\", \"value3\"]")
    private List<String> pictures;

    //城市
    private String city;

    public String getPictures() {
        System.out.println(pictures.get(1));
        return String.join(",",pictures);
    }

}
